$(function () {
    var layer = layui.layer;
    $('#tc').on('click', function () {
        layer.confirm('是否确定退出？', { icon: 3, title: '提示' }, function (index) {
            localStorage.removeItem('token');
            location.href = '../login.html'
            layer.close(index);
        });
    })
})